﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0520
{
    class Calculate
    {
        //定义数据
        protected double num1;
        protected double num2;
        //定义属性
        public double Num1 { get; set; }
        public double Num2 { get; set; }
        //初始化
        public Calculate() { }
        public Calculate(double num1, double num2) 
        { }
        //虚方法
        public virtual void DisplayResult(double num1, double num2) 
        {
            
        }
    }
}
